package com.example.demo.service.impl;

import com.example.demo.dao.Orderitem;
import com.example.demo.mapper.OrderitemMapper;
import com.example.demo.service.OrderItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderItemServiceImpl implements OrderItemService {

    @Autowired
    private OrderitemMapper orderitemMapper;

    //添加订单和商品的关系
    @Override
    public int addIndentGoods(Orderitem orderitem) {
        return  orderitemMapper.insert(orderitem);
    }
}
